home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog Special Freeware 31
/
FreelogHS31.iso
/
ArgentCompta
/
FASTCOMPTA
/
Setup FASTCOMPTA.exe
/
{app}
/
Patch FastCompta 1.sql
< prev
next >
Wrap
Text File
|
2006-12-20
|
461b
|
21 lines
ALTER PROCEDURE EFF_MOUVEMENT (
INDEX_MVT INTEGER)
RETURNS (
EFF_OK SMALLINT)
AS
DECLARE VARIABLE N INTEGER;
BEGIN
SELECT VERROU FROM MOUVEMENTS WHERE INDX=:INDEX_MVT INTO :N;
if (N=0) then
SELECT COUNT(*) FROM LIGNES WHERE INDX_MVT=:INDEX_MVT AND LETTRAGE IS NOT NULL INTO :N;
IF (N<>0) THEN EFF_OK=0; ELSE
BEGIN
EFF_OK=1;
DELETE FROM MOUVEMENTS WHERE INDX=:INDEX_MVT;
END
SUSPEND;
END
;
SET GENERATOR VERSION_BASE TO 1;